package cn.edu.scau.cmi.yangzemin.client;

import cn.edu.scau.cmi.yangzemin.singleton.UIController2;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MultitonClient extends Application{

	public static void main(String[] args)
	{
		launch(args); 
	}

	public void start(Stage primaryStage) throws Exception
	{
		FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/cn/edu/scau/cmi/yangzemin/singleton/UI2.fxml"));
		Parent root = fxmlLoader.load();
		primaryStage.setTitle("SingletonClient");
		primaryStage.setResizable(false);
		primaryStage.setScene(new Scene(root));
		UIController2 uiController = fxmlLoader.getController();
		uiController.init();
		primaryStage.show();
	}
}
